package com.lianyu507.api;

import com.lianyu507.enums.ErrorTypeEnum;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

@Controller
@RequestMapping("/error")
public class CommonController extends BaseController{
	


	@RequestMapping(value = "/index")
	@ResponseBody
	public  Map<String,Object> needLogin(){
		return failedResult(ErrorTypeEnum.SERVER_ERROR,"服务器错误，请联系管理员!");
	}


}
	
